<me:UIVVAVIS x:Class="WPFExcelReport.TVV21"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"  
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    IsAuto="True"
                     x:Name="TV"
                    Loaded="Window_Loaded"
     >
    <me:UIVVAVIS.Resources>
        <CollectionViewSource  x:Key="vwMaster" />
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:NOTConverter  x:Key="not"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </me:UIVVAVIS.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel>
            <WrapPanel IsEnabled="{Binding IsCanNew,ElementName=TV}" Visibility="Collapsed" >
                <Button Click="NewCommand" Height="20" Margin="5,0,0,0" Width="Auto" Content="{Binding Source={Localization:Translate Word=新建}}"/>
                <Button Click="CloseCommand" Height="20" Margin="5,0,0,0" Width="Auto" Content="{Binding Source={Localization:Translate Word=关闭}}"/>
                <Button Click="EditCommand" Height="20" Margin="5,0,0,0" Width="24" >
                    <Button.Background>
                        <ImageBrush  ImageSource="/ImagePackage;component/Images/Edit.png" />
                    </Button.Background>
                </Button>
                <Button Click="SaveCommand" Height="20" Margin="5,0,0,0" Width="24" 
                        IsEnabled="{Binding IsEdit,ElementName=TV}" >
                    <Button.Background>
                        <ImageBrush  ImageSource="/ImagePackage;component/Images/Save.png" />
                    </Button.Background>
                </Button>
                <TextBlock Text="{Binding Source={Localization:Translate Word=我方流水}}"></TextBlock>
                <TextBlock  FontSize="18" 
                            Text="{Binding VVAAVISNR,Converter={StaticResource ResourceKey=pnum}}"  
                            Width="Auto" 
                            MinWidth="60" />
                <ComboBox 
                    Height="24"
                    IsEditable="True" 
                    Width="60" 
                    SelectedValuePath="KEY" 
                    DisplayMemberPath="KEY"
                    ItemsSource="{Binding Source={StaticResource vwMaster}}" 
                    IsSynchronizedWithCurrentItem="True" 
            >
                </ComboBox  >
            </WrapPanel>
            <WrapPanel>
                <TextBlock Text="{Binding Source={Localization:Translate Word=运输单号:}}"></TextBlock>
                <ex:TXT72  FontSize="18" MaxLength="20" 
                            Text="{Binding FAHRER,ElementName=TV}"   
                            KeyUp="YD_KeyUp"
                            Width="150" 
                            MinWidth="60" />
                <TextBlock Text="{Binding Source={Localization:Translate Word=回车}}"></TextBlock>
            </WrapPanel> 
        </StackPanel> 
    </Grid>
</me:UIVVAVIS> 
 
